home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
003
/
bar.arc
/
BAR.PRG
next >
Wrap
Text File
|
1987-03-30
|
888b
|
47 lines
* Program..: Bar.PRG
* Author...: Jon Wind
* Date.....: March 30, 1987
* Version..: dBASE III or III PLUS
* Note(s)..: This program generates a status bar, for use when
* performing multiple searches, or lengthy calculations
* to graphically illustrate program status to the user.
*
WAIT "Are you using dBASE III PLUS? (y/N) " TO db3p
SET TALK OFF
SET PROC TO barproc
CLEA
IF UPPE(db3p)="Y"
DO buildbar WITH 14,"Percent Completed","g"
ELSE
*set up memvars because REPLICATE command is not available
bar=CHR(219)
dbar=CHR(205)
DO WHIL LEN(bar)<50
bar=bar+bar
dbar=dbar+dbar
ENDD
DO buildbr2 WITH 14,"Percent Completed","2"
ENDI
cnt=0
DO WHIL cnt<101
IF UPPE(db3p)="Y"
DO barstat WITH cnt,""
ELSE
DO barstat2 WITH cnt,"7"
ENDI
cnt=cnt+5
ENDD
SET TALK ON
@23,0